<div class="tabbable">
    <ul class="nav nav-tabs set-top">

		<?php if ($this->getaction == 'index'): ?>
		    <li class="active"><a href="">我的淘车乐</a></li>
		<?php endif;?>
		
		<?php if ($this->getaction == 'sale'): ?>
			<li class="<?php if ($this->app == '-1'):?>active<?php endif;?>"><a href="<?= $this->url(array('app'=>'-1','page'=>'1'))?>">全部信息</a></li>
			<li class="<?php if ($this->app == '1'):?>active<?php endif;?>"><a href="<?= $this->url(array('app'=>'1','page'=>'1'))?>">显示中的信息</a></li>
		    <li class="<?php if ($this->app == '4'):?>active<?php endif;?>"><a href="<?= $this->url(array('app'=>'4','page'=>'1'))?>">审核中信息</a></li>
		    <li class="<?php if ($this->app == '2'):?>active<?php endif;?>"><a href="<?= $this->url(array('app'=>'2','page'=>'1'))?>">售出的信息</a></li>
		    <li class="<?php if ($this->app == '3'):?>active<?php endif;?>"><a href="<?= $this->url(array('app'=>'3','page'=>'1'))?>">已删除的信息</a></li>
		<?php endif;?>
		
		<?php if ($this->getaction == 'favorites'): ?>
			<li class="active"><a href="<?= $this->url(array('ac'=>'list'))?>">我的收藏</a></li>

		<?php endif;?>	
		
		<?php if ($this->getaction == 'profit'): ?>
			<li class="active"><a href="<?= $this->url(array('ac'=>'list','page'=>'1'))?>">推广中心</a></li>

		<?php endif;?>		
		
		<?php if ($this->getaction == 'msg'): ?>
			<li class="active"><a href="<?= $this->url(array('ac'=>'list','page'=>'1'))?>">消息中心</a></li>

		<?php endif;?>	
		
		<?php if ($this->getaction == 'profile'): ?>
			<li class="<?php if ($this->app == '1'):?>active<?php endif;?>"><a href="<?= $this->url(array('app'=>'1'))?>">个人资料</a></li>
			<li class="<?php if ($this->app == '2'):?>active<?php endif;?>"><a href="<?= $this->url(array('app'=>'2'))?>">密码安全</a></li>
		<?php endif;?>	
		
		
		
		<?php if ($this->getaction == 'user'): ?>
			<li class="<?php if ($this->app == '-1'):?>active<?php endif;?>"><a href="<?= $this->url(array('app'=>'-1'))?>">全部用户</a></li>
			<li class="<?php if ($this->app == '1'):?>active<?php endif;?>"><a href="<?= $this->url(array('app'=>'1'))?>">普通用户</a></li>
			<li class="<?php if ($this->app == '2'):?>active<?php endif;?>"><a href="<?= $this->url(array('app'=>'2'))?>">小黑屋</a></li>
		<?php endif;?>	
		
		<?php if ($this->getaction == 'sale' || $this->getaction == 'user'): ?>
	    <div class="input-append pull-right">
            <input id="query" type="text" value="<?= $this->query?>" placeholder="输入关键词搜索" autocomplete="off" onkeydown="event.keyCode==13 && $('#set_search').click();">
            <button class="btn" type="button" id="set_search"><i class="icon-search"></i></button>
            <input type="hidden" value="<?= $this->url(array('controller'=>'set','page'=>'1','query'=>''))?>" id="search_url" />
        </div>
        <?php endif;?>
    </ul>
    <div class="tab-content set-content">

    	<!--  ul class="nav nav-pills">
            <li class="active">
                <a href="#">类型一</a>
            </li>
            <li><a href="#">类型二</a></li>
        </ul-->
        <br />
        
        <div class="tab-content">